@echo off

set REGKEY=HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR

if "%1"=="enable" (
	echo Enable the Mass Storage
	reg add %REGKEY% /v Start /t REG_DWORD /d 3 /f > NUL
	echo Done.
	goto _end_
)

if "%1"=="disable" (
	echo Disable the Mass Storage
	reg delete %REGKEY% /v Start /f > NUL
	echo Done.
	goto _end_
)

echo udisk - Enable / Disable the Mass Storage
echo usage: udisk [enable ^| disable]

:_end_

